<div class="col-xs-12 col-sm-8 col-md-8 col-lg-8">
    <?php
        $breadCum = array(
            array(
                'title' => $nodeType['NodeType']['name'],
                'link' => 'live_american',
                'params' => array('phong-tuc-tap-quan-my')
            ),
            array(
                'title' => $term['Term']['name'],
                'link' => 'live_american',
                'params' => array($term['Term']['alias'])
            ),
            array(
                'title' => $content['Node']['title'],
                'link' => null,
                'params' => null
            )
        );
    ?>
    <?php echo $this->element('breadcum',array('pass' => $breadCum));?>
    <?php if($content['Node']['field_has_video']):?>
        <div class="block-tab">
            <?php if(!empty($content)):?>
                <h2 class="title-mbd"><?php echo $content['Node']['title'];?></h2>
                <div class="tabs-pane-content-full bdbt">
                    <?php if(!empty($content['Node']['field_body'])):?>
                        <div class="embed-responsive embed-responsive-16by9 mb10">
                            <?php echo $content['Node']['field_body'];?>
                        </div>
                        <?php else:?>
                        <?php echo $this->element('msg_data');?>
                        <?php endif;?>
                </div>
                <div class="control-page">
                    <a href="#" class="control-pglink"><i class="glyphicon glyphicon-arrow-left"></i>Về trang trước </a>
                    <a href="#" class="control-pglink ct-bfline"><i class="glyphicon glyphicon-arrow-up"></i>Lên trang đầu </a>
                </div>
                <h3 class="title-mtt"><?php echo __d('default','Các bài viết khác');?></h3>
                <?php if(!empty($others_content)):?>
                    <div class="tabs-pane-content-full">
                        <ul class="grid-news grid-news-lmh row">
                            <?php foreach($others_content as $key => $values):?>
                                <?php 
                                    if((!empty($values['Node']['field_image_default']))&&(file_exists(WWW_ROOT . '/img/' . $values['Node']['field_image_default'])))
                                    {
                                        $thumb_pro = $this->Image->make_thumb($values['Node']['field_image_default'],WWW_ROOT . '/img/','179','100');
                                    }
                                    else
                                    {
                                        $thumb_pro = $this->Image->make_thumb('no_image.jpg',WWW_ROOT.'/img/','179','100');
                                    }
                                ?>
                                <li class="col-xs-4 col-sm-4 col-md-4 col-lg-4 grid-news-item">
                                    <a href="<?php echo $this->Html->url(array('plugin'=>'View','controller'=>'View','action'=>'live_american',$term['Term']['alias'],$values['Node']['alias']));?>" class="thumbnail-content">
                                        <span class="image-ct image-ct-nbd">
                                            <img src="<?php echo $this->Html->webroot('/img/' . $thumb_pro);?>" alt="du an" height="100" width="179">
                                            <?php if($values['Node']['field_has_video']):?>
                                                <span class="bg-overlay"></span>
                                                <span class="play-vdbt"><i class="glyphicon glyphicon-play"></i></span>
                                                <?php endif;?>
                                        </span>
                                        <span class="caption-content">
                                            <span class="title-md" title="<?php echo $values['Node']['title'];?>"><?php echo String::truncate($values['Node']['title'],28);?></span>
                                        </span>
                                    </a>
                                </li>
                                <?php endforeach;?>
                        </ul>
                    </div>
                    <?php endif;?>
                <?php else:?>
                <?php echo $this->element('msg_data');?>
                <?php endif;?>
        </div>
        <?php else:?>
        <div class="block-tab">
            <div class="tabpanel-cus" role="tabpanel">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs mytabs-cus mytabs-nbdcus">
                    <li class="item active"><a href="#item-11" data-toggle="tab"><?php echo String::truncate($content['Node']['title'],40);?></a></li>
                </ul>
                <!-- Tab panes -->
                <div class="tab-content">
                    <div class="tab-pane tab-pane-bgtop fade in active" id="item-11">
                        <div class="tabs-pane-content-full">
                            <div class="article-detail">
                                <?php if(!empty($content['Node']['field_body'])):?>
                                    <?php echo $content['Node']['field_body'];?>
                                    <?php else:?>
                                    <?php echo $this->element('msg_data');?>
                                    <?php endif;?>
                            </div>
                        </div>
                    </div>
                </div>
                <?php if(!empty($others_content)):?>
                    <h3 class="title-mtt"><?php echo __d('default','Các bài viết khác');?></h3>
                    <div class="tabs-pane-content-full">
                        <ul class="grid-news grid-news-lmh row">
                            <?php foreach($others_content as $key => $values):?>
                                <?php 
                                    if((!empty($values['Node']['field_image_default']))&&(file_exists(WWW_ROOT . '/img/' . $values['Node']['field_image_default'])))
                                    {
                                        $thumb_pro = $this->Image->make_thumb($values['Node']['field_image_default'],WWW_ROOT . '/img/','179','100');
                                    }
                                    else
                                    {
                                        $thumb_pro = $this->Image->make_thumb('no_image.jpg',WWW_ROOT.'/img/','179','100');
                                    }
                                ?>
                                <li class="col-xs-4 col-sm-4 col-md-4 col-lg-4 grid-news-item">
                                    <a href="<?php echo $this->Html->url(array('plugin'=>'View','controller'=>'View','action'=>'live_american',$term['Term']['alias'],$values['Node']['alias']));?>" class="thumbnail-content">
                                        <span class="image-ct image-ct-nbd">
                                            <img src="<?php echo $this->Html->webroot('/img/' . $thumb_pro);?>" alt="du an" height="100" width="179">
                                            <?php if($values['Node']['field_has_video']):?>
                                                <span class="bg-overlay"></span>
                                                <span class="play-vdbt"><i class="glyphicon glyphicon-play"></i></span>
                                                <?php endif;?>
                                    </span>
                                    <span class="caption-content">
                                        <span class="title-md" title="<?php echo $values['Node']['title'];?>"><?php echo String::truncate($values['Node']['title'],28);?></span>
                                    </span>
                                </a>
                            </li>
                            <?php endforeach;?>
                    </ul>
                </div>
                <?php endif;?>
        </div>
    </div>
    <?php endif;?>
    <!-- block 2 .end -->
</div>